class PeacePosition:

    def __init__(self, xVal, yVal):
        self._x = xVal;
        self._y = yVal;

    @property
    def x(self):
        return self._x;

    @property
    def y(self):
        return self._y;

    def serialize(self):
        return "{x:" + str(self._x) + ",y:" + str(self._y) + "}";

    @staticmethod
    def fromHash(obj):
        return PeacePosition(int(obj["x"]), int(obj["y"]));